# Contributor: Marvin Steadfast <marvin@xsteadfastx.org>
# Maintainer: Marvin Steadfast <marvin@xsteadfastx.org>
pkgname=unibilium
pkgver=2.1.0
pkgrel=0
pkgdesc="Terminfo parsing library"
url="https://github.com/neovim/unibilium/"
arch="all"
license="LGPL-3.0-or-later"
makedepends="libtool"
checkdepends="perl-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/neovim/unibilium/archive/v$pkgver.tar.gz
	build-static-lib.patch
	"

build() {
	make PREFIX=/usr
}

check() {
	make test
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="c0074ff8431f82c92072b8c0c9d3cf38d759b4de996b168c6ab00e475b0a6204d9c29b0a6e48e62dd4fa4898f82246150ef7cd5e246893d2c225c50ec4d4ac68  unibilium-2.1.0.tar.gz
68533c5e55997061ce71f1701490d078fd6a22ee83615d693e6b2fddda2d2b652ce73f5ff5335d3747f211845d4da4a80eb12733407ee071785624f94fa1d0e8  build-static-lib.patch"
